using System;
using Samples.MetaContainer.MoneyExchangeSample.DomainModel.Services;

namespace Samples.MetaContainer.MoneyExchangeSample.ConsoleHost
{
    public class MoneyExchange : IMoneyExchange
    {
        public double Change(string from, string to, double value)
        {
            if (from == "EUR" && to == "PLN")
                return value * 4.66;
            throw new NotSupportedException();
        }
    }

}